{include file="Public:header2"/}
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <table class="layui-table" style="text-align:center;">
                <thead>
                <tr>
                    <td >层级</td>
                    <td >单价</td>
                    <td >操作</td>
                </tr>
                </thead>
                <tbody>
                {volist name="data" id="vo"}
                    <tr>
                        <td>第{$vo['num']}层</td>
                        <td>{$vo['price']}</td>
                        <td>
                            <a style="text-decoration:none" title="层级奖品" href="javascript:;"  onclick="climb_list({$goods_id}, {$vo['num']},0)"  class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">层级奖品</a>
<!--                            <a style="text-decoration:none" title="通过奖品" href="javascript:;" onclick="tan_tiao('该层首通奖品','{:url('/admin/climb_list',array('goods_id'=>$goods_id,'num'=>$vo['num'],'prize_type'=>'5'))}')" class="layui-btn layui-btn-radius layui-btn-default layui-btn-xs">首通奖品</a>-->
<!--                            <a style="text-decoration:none" title="通过奖品" href="javascript:;" onclick="tan_tiao('该层通过奖品','{:url('/admin/climb_list',array('goods_id'=>$goods_id,'num'=>$vo['num'],'prize_type'=>'4'))}')" class="layui-btn layui-btn-radius layui-btn-default layui-btn-xs">通过奖品</a>-->
                            <a style="text-decoration:none" title="编辑" href="javascript:;"  onclick="level_edit({$vo['id']})"  class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">编辑
                                </a>
                        </td>
                    </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </div>
</div>
{include file="Public:footer"/}
<script type="text/javascript">
    layui.use(['layer','table'], function(){
        var $ = layui.$;
        
    })

    // 编辑塔层奖品
    function level_edit(id) {
        var url  = "{:url('/admin/climb_climb_edit?id="+id+"')}";
        layer.open({
            type: 2,
            title: '编辑塔层',
            shadeClose: false,
            shade: 0.3,
            area: ['90%', '90%'],
            content: url,
        });
    }

    //本层奖品
    function climb_list(goods_id, num, prize_type){
        var url = "{:url('/admin/climb_list?goods_id="+goods_id+"&num="+num+"&prize_type="+prize_type+"')}";
        layer.open({
            type: 2,
            title: '本层奖品',
            shadeClose: false,
            shade: 0.3,
            area: ['90%', '90%'],
            content: url,
        });
    }

    //本层奖品
    function climb_list11(goods_id, num, prize_type){
        var url = "{:url('/admin/climb_list_add?goods_id="+goods_id+"&num="+num+"&prize_type="+prize_type+"')}";
        layer.open({
            type: 2,
            title: '本层奖品',
            shadeClose: false,
            shade: 0.3,
            area: ['90%', '90%'],
            content: url,
        });
    }

</script>
</body>
</html>


